package org.wmsafe.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.wmsafe.mapper.LinksMapper;
import org.wmsafe.pojo.Links;
import org.wmsafe.service.LinksService;

import java.util.List;

@Service
public class LinksServiceImpl implements LinksService {

    LinksMapper linksMapper;

    @Autowired
    public void setLinksMapper(LinksMapper linksMapper) {
        this.linksMapper = linksMapper;
    }

    public List<Links> list() {
        return linksMapper.list();
    }

    public List<Links> getLinksAllByTypeID(int links_type_id) {
        return linksMapper.getLinksAllByTypeID(links_type_id);
    }


}
